Fix octave-inf completion problems reported by Alexander Klimov.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Apr 2011 16:29:31 +0000 (13:29 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Apr 2011 16:29:31 +0000 (13:29 -0300)
commit493431e69350eedd7bf0a8fc870a71192bc60dcc
tree84e0734ce57c728a543bb7b4bb9735c9fb3f5f81
parent1a28a1d7c27d128340ae33cbdd19746a8288c06a
Fix octave-inf completion problems reported by Alexander Klimov.
* lisp/progmodes/octave-inf.el (inferior-octave-mode-syntax-table):
Inherit from octave-mode-syntax-table.
(inferior-octave-mode): Set info-lookup-mode.
(inferior-octave-completion-at-point): New function.
(inferior-octave-complete): Use it and completion-in-region.
(inferior-octave-dynamic-complete-functions): Use it as well, and use
comint-filename-completion.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use _ syntax for
symbol elements which shouldn't be word elements.
(octave-font-lock-keywords, octave-beginning-of-defun)
(octave-function-header-regexp): Adjust regexps accordingly.
(octave-mode-map): Also use info-lookup-symbol for C-c C-h.
lisp/ChangeLog
lisp/progmodes/octave-inf.el
lisp/progmodes/octave-mod.el